package com.czy.owner.entity;

import java.io.Serializable;
import java.util.List;

/**
 * Created by wangyang on 2016/9/8 0008.
 * 订单实体类
 */
public class MyOrderModel implements Serializable {


    /**
     * orderType : serviceOrder
     * note : ffgfgfgfgf
     * createUserId : 3
     * orderNumber : OD201609261340109751903
     * totalPrice : 0.33
     * actualAmount : 0
     * orderStatus : waitService
     * storeId : 17
     * ownerId : 22
     * delFlag : false
     * serviceTime : 1474820700000
     * actualDepositAmount : 0.3
     * userOrderId : 350
     * userDelFlag : false
     * payAmount : 0.03
     * customItemList : [{"depositAmount":0,"itemName":"qqqq","itemType":"custom","orderId":350,"orderItemId":688,"price":0.01,"discountPrice":0,"count":1,"itemTypeId":"0"},{"depositAmount":0,"itemName":"www","itemType":"custom","orderId":350,"orderItemId":689,"price":0.02,"discountPrice":0,"count":1,"itemTypeId":"0"}]
     * createTime : 1474868410975
     * needInvoice : true
     * ownerCarId : 182
     * serviceList : 汽车娱乐,四轮定位
     * orderEmps : 徐敏,王洋,wy
     * goodsItemList : []
     * payStatus :"notPay",
     * chName :"阿尔法-罗密欧"
     * logo http://o6w2souoh.bkt.clouddn.com/defaultUserGroup.png
     */
    private String licenseNumber;
    private String orderType;
    private String note;
    private int createUserId;
    private String orderNumber;
    private double totalPrice;
    private double actualAmount;
    private String orderStatus;
    private int storeId;
    private int ownerId;
    private String delFlag;
    private long serviceTime;
    private double actualDepositAmount;
    private double payedDepositAmount;
private long openTime;
    private int userOrderId;
    private String userDelFlag;
    private double payAmount;
    private long createTime;
    private String needInvoice;
    private int ownerCarId;
    private String serviceList;
    private String orderEmps;
    private String payStatus;
    private String chName;
    private String storeBookingNumber;
    private String allGoodsName;
    private String allServiceName;
    private String allCustomName;
    private String unPaidDepositTime;

    public String getUnPaidDepositTime() {
        return unPaidDepositTime;
    }

    public void setUnPaidDepositTime(String unPaidDepositTime) {
        this.unPaidDepositTime = unPaidDepositTime;
    }

    public long getOpenTime() {
        return openTime;
    }

    public void setOpenTime(long openTime) {
        this.openTime = openTime;
    }

    private List<ServiceItemBean> serviceItemsList;

    public List<ServiceItemBean> getServiceItemsList() {
        return serviceItemsList;
    }

    public void setServiceItemsList(List<ServiceItemBean> serviceItemsList) {
        this.serviceItemsList = serviceItemsList;
    }

    public String getStoreBookingNumber() {
        return storeBookingNumber;
    }

    public void setStoreBookingNumber(String storeBookingNumber) {
        this.storeBookingNumber = storeBookingNumber;
    }

    public double getPayedDepositAmount() {
        return payedDepositAmount;
    }

    public void setPayedDepositAmount(double payedDepositAmount) {
        this.payedDepositAmount = payedDepositAmount;
    }

    /**
     * depositAmount : 0
     * itemName : qqqq
     * itemType : custom
     * orderId : 350
     * orderItemId : 688
     * price : 0.01
     * discountPrice : 0
     * count : 1
     * itemTypeId : 0
     */

    private List<CustomItemListBean> customItemList;
    private List<GoodItemListBean> goodsItemList;

    public String getGoodsName() {
        if (allGoodsName != null && !allGoodsName.isEmpty())
            return allGoodsName;
        for (GoodItemListBean goodItemListBean : goodsItemList) {
            allGoodsName = allGoodsName + goodItemListBean.getGoodsName();
        }
        return allGoodsName;
    }

    public String getAllServiceName() {
        if (allServiceName != null && !allServiceName.isEmpty())
            return allServiceName;
        for (ServiceItemBean serviceItemBean : serviceItemsList) {
            allServiceName = allServiceName + serviceItemBean.getServiceName();
        }
        return allServiceName;
    }

    public String getAllCustomName() {
        if (allCustomName != null && !allCustomName.isEmpty())
            return allCustomName;
        for (CustomItemListBean goodItemListBean : customItemList) {
            allCustomName = allCustomName + goodItemListBean.getItemName();
        }
        return allCustomName;
    }

    public String getLicenseNumber() {
        return licenseNumber;
    }

    public void setLicenseNumber(String licenseNumber) {
        this.licenseNumber = licenseNumber;
    }

    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public int getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(int createUserId) {
        this.createUserId = createUserId;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(double totalPrice) {
        this.totalPrice = totalPrice;
    }

    public double getActualAmount() {
        return actualAmount;
    }

    public void setActualAmount(double actualAmount) {
        this.actualAmount = actualAmount;
    }

    public String getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(String orderStatus) {
        this.orderStatus = orderStatus;
    }

    public int getStoreId() {
        return storeId;
    }

    public void setStoreId(int storeId) {
        this.storeId = storeId;
    }

    public int getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(int ownerId) {
        this.ownerId = ownerId;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public long getServiceTime() {
        return serviceTime;
    }

    public void setServiceTime(long serviceTime) {
        this.serviceTime = serviceTime;
    }

    public double getActualDepositAmount() {
        return actualDepositAmount;
    }

    public void setActualDepositAmount(double actualDepositAmount) {
        this.actualDepositAmount = actualDepositAmount;
    }

    public int getUserOrderId() {
        return userOrderId;
    }

    public void setUserOrderId(int userOrderId) {
        this.userOrderId = userOrderId;
    }

    public String getUserDelFlag() {
        return userDelFlag;
    }

    public void setUserDelFlag(String userDelFlag) {
        this.userDelFlag = userDelFlag;
    }

    public double getPayAmount() {
        return payAmount;
    }

    public void setPayAmount(double payAmount) {
        this.payAmount = payAmount;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public String getNeedInvoice() {
        return needInvoice;
    }

    public void setNeedInvoice(String needInvoice) {
        this.needInvoice = needInvoice;
    }

    public int getOwnerCarId() {
        return ownerCarId;
    }

    public void setOwnerCarId(int ownerCarId) {
        this.ownerCarId = ownerCarId;
    }

    public String getServiceList() {
        return serviceList;
    }

    public void setServiceList(String serviceList) {
        this.serviceList = serviceList;
    }

    public String getOrderEmps() {
        return orderEmps;
    }

    public void setOrderEmps(String orderEmps) {
        this.orderEmps = orderEmps;
    }

    public List<CustomItemListBean> getCustomItemList() {
        return customItemList;
    }

    public void setCustomItemList(List<CustomItemListBean> customItemList) {
        this.customItemList = customItemList;
    }

    public List<GoodItemListBean> getGoodsItemList() {
        return goodsItemList;
    }

    public void setGoodsItemList(List<GoodItemListBean> goodsItemList) {
        this.goodsItemList = goodsItemList;
    }

    public String getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(String payStatus) {
        this.payStatus = payStatus;
    }

    public String getChName() {
        return chName;
    }

    public void setChName(String chName) {
        this.chName = chName;
    }

    public static class CustomItemListBean implements Serializable {
        private double depositAmount;
        private String itemName;
        private String itemType;
        private int orderId;
        private int orderItemId;
        private double price;
        private double discountPrice;
        private int count;
        private String itemTypeId;
        private String logo;

        public double getDepositAmount() {
            return depositAmount;
        }

        public void setDepositAmount(double depositAmount) {
            this.depositAmount = depositAmount;
        }

        public String getItemName() {
            return itemName;
        }

        public void setItemName(String itemName) {
            this.itemName = itemName;
        }

        public String getItemType() {
            return itemType;
        }

        public void setItemType(String itemType) {
            this.itemType = itemType;
        }

        public int getOrderId() {
            return orderId;
        }

        public void setOrderId(int orderId) {
            this.orderId = orderId;
        }

        public int getOrderItemId() {
            return orderItemId;
        }

        public void setOrderItemId(int orderItemId) {
            this.orderItemId = orderItemId;
        }

        public double getPrice() {
            return price;
        }

        public void setPrice(double price) {
            this.price = price;
        }

        public double getDiscountPrice() {
            return discountPrice;
        }

        public void setDiscountPrice(double discountPrice) {
            this.discountPrice = discountPrice;
        }

        public int getCount() {
            return count;
        }

        public void setCount(int count) {
            this.count = count;
        }

        public String getItemTypeId() {
            return itemTypeId;
        }

        public void setItemTypeId(String itemTypeId) {
            this.itemTypeId = itemTypeId;
        }

        public String getLogo() {
            return logo;
        }

        public void setLogo(String logo) {
            this.logo = logo;
        }
    }

    public static class ServiceItemBean implements Serializable {
        private String note;
        private String itemType;
        private int orderId;
        private int shipTime;
        private int freight;
        private int discountPrice;
        private int stoProfits;
        private int installTime;
        private int totalCount;
        private String logisticsContact;
        private int remainingCount;
        private int supProfits;
        private int userPackageId;
        private String needService;
        private int goodsActivityId;
        private String itemName;
        private int price;
        private String logisticsCompany;
        private String logo;
        private int toStorePrice;
        private int shipAddressId;
        private String itemTypeId;
        private String logisticsNumber;
        private int depositAmount;
        private int receivingTime;
        private int addUserId;
        private int orderItemId;
        private int sysProfits;
        private int count;
        private int reservationPrice;
        private int deliveryWayId;
        private String serviceName;
        private String specGroupKey;
        private int serviceInstallStoreId;
        private int servicePrice;
        private String installStatus;
        private int sysPurchasePrice;
        private String logisticsStatus;

        public String getNote() {
            return note;
        }

        public void setNote(String note) {
            this.note = note;
        }

        public String getItemType() {
            return itemType;
        }

        public void setItemType(String itemType) {
            this.itemType = itemType;
        }

        public int getOrderId() {
            return orderId;
        }

        public void setOrderId(int orderId) {
            this.orderId = orderId;
        }

        public int getShipTime() {
            return shipTime;
        }

        public void setShipTime(int shipTime) {
            this.shipTime = shipTime;
        }

        public int getFreight() {
            return freight;
        }

        public void setFreight(int freight) {
            this.freight = freight;
        }

        public int getDiscountPrice() {
            return discountPrice;
        }

        public void setDiscountPrice(int discountPrice) {
            this.discountPrice = discountPrice;
        }

        public int getStoProfits() {
            return stoProfits;
        }

        public void setStoProfits(int stoProfits) {
            this.stoProfits = stoProfits;
        }

        public int getInstallTime() {
            return installTime;
        }

        public void setInstallTime(int installTime) {
            this.installTime = installTime;
        }

        public int getTotalCount() {
            return totalCount;
        }

        public void setTotalCount(int totalCount) {
            this.totalCount = totalCount;
        }

        public String getLogisticsContact() {
            return logisticsContact;
        }

        public void setLogisticsContact(String logisticsContact) {
            this.logisticsContact = logisticsContact;
        }

        public int getRemainingCount() {
            return remainingCount;
        }

        public void setRemainingCount(int remainingCount) {
            this.remainingCount = remainingCount;
        }

        public int getSupProfits() {
            return supProfits;
        }

        public void setSupProfits(int supProfits) {
            this.supProfits = supProfits;
        }

        public int getUserPackageId() {
            return userPackageId;
        }

        public void setUserPackageId(int userPackageId) {
            this.userPackageId = userPackageId;
        }

        public String getNeedService() {
            return needService;
        }

        public void setNeedService(String needService) {
            this.needService = needService;
        }

        public int getGoodsActivityId() {
            return goodsActivityId;
        }

        public void setGoodsActivityId(int goodsActivityId) {
            this.goodsActivityId = goodsActivityId;
        }

        public String getItemName() {
            return itemName;
        }

        public void setItemName(String itemName) {
            this.itemName = itemName;
        }

        public int getPrice() {
            return price;
        }

        public void setPrice(int price) {
            this.price = price;
        }

        public String getLogisticsCompany() {
            return logisticsCompany;
        }

        public void setLogisticsCompany(String logisticsCompany) {
            this.logisticsCompany = logisticsCompany;
        }

        public String getLogo() {
            return logo;
        }

        public void setLogo(String logo) {
            this.logo = logo;
        }

        public int getToStorePrice() {
            return toStorePrice;
        }

        public void setToStorePrice(int toStorePrice) {
            this.toStorePrice = toStorePrice;
        }

        public int getShipAddressId() {
            return shipAddressId;
        }

        public void setShipAddressId(int shipAddressId) {
            this.shipAddressId = shipAddressId;
        }

        public String getItemTypeId() {
            return itemTypeId;
        }

        public void setItemTypeId(String itemTypeId) {
            this.itemTypeId = itemTypeId;
        }

        public String getLogisticsNumber() {
            return logisticsNumber;
        }

        public void setLogisticsNumber(String logisticsNumber) {
            this.logisticsNumber = logisticsNumber;
        }

        public int getDepositAmount() {
            return depositAmount;
        }

        public void setDepositAmount(int depositAmount) {
            this.depositAmount = depositAmount;
        }

        public int getReceivingTime() {
            return receivingTime;
        }

        public void setReceivingTime(int receivingTime) {
            this.receivingTime = receivingTime;
        }

        public int getAddUserId() {
            return addUserId;
        }

        public void setAddUserId(int addUserId) {
            this.addUserId = addUserId;
        }

        public int getOrderItemId() {
            return orderItemId;
        }

        public void setOrderItemId(int orderItemId) {
            this.orderItemId = orderItemId;
        }

        public int getSysProfits() {
            return sysProfits;
        }

        public void setSysProfits(int sysProfits) {
            this.sysProfits = sysProfits;
        }

        public int getCount() {
            return count;
        }

        public void setCount(int count) {
            this.count = count;
        }

        public int getReservationPrice() {
            return reservationPrice;
        }

        public void setReservationPrice(int reservationPrice) {
            this.reservationPrice = reservationPrice;
        }

        public int getDeliveryWayId() {
            return deliveryWayId;
        }

        public void setDeliveryWayId(int deliveryWayId) {
            this.deliveryWayId = deliveryWayId;
        }

        public String getServiceName() {
            return serviceName;
        }

        public void setServiceName(String serviceName) {
            this.serviceName = serviceName;
        }

        public String getSpecGroupKey() {
            return specGroupKey;
        }

        public void setSpecGroupKey(String specGroupKey) {
            this.specGroupKey = specGroupKey;
        }

        public int getServiceInstallStoreId() {
            return serviceInstallStoreId;
        }

        public void setServiceInstallStoreId(int serviceInstallStoreId) {
            this.serviceInstallStoreId = serviceInstallStoreId;
        }

        public int getServicePrice() {
            return servicePrice;
        }

        public void setServicePrice(int servicePrice) {
            this.servicePrice = servicePrice;
        }

        public String getInstallStatus() {
            return installStatus;
        }

        public void setInstallStatus(String installStatus) {
            this.installStatus = installStatus;
        }

        public int getSysPurchasePrice() {
            return sysPurchasePrice;
        }

        public void setSysPurchasePrice(int sysPurchasePrice) {
            this.sysPurchasePrice = sysPurchasePrice;
        }

        public String getLogisticsStatus() {
            return logisticsStatus;
        }

        public void setLogisticsStatus(String logisticsStatus) {
            this.logisticsStatus = logisticsStatus;
        }
    }

    public static class GoodItemListBean implements Serializable {
        private double depositAmount;
        private String itemName;
        private String itemType;
        private int orderId;
        private int orderItemId;
        private double price;
        private double discountPrice;
        private int count;
        private String itemTypeId;
        private String logo;
        private int goodsId;
        private String goodsCode;
        private String goodsName;

        public int getGoodsId() {
            return goodsId;
        }

        public void setGoodsId(int goodsId) {
            this.goodsId = goodsId;
        }

        public String getGoodsCode() {
            return goodsCode;
        }

        public void setGoodsCode(String goodsCode) {
            this.goodsCode = goodsCode;
        }

        public String getGoodsName() {
            return goodsName;
        }

        public void setGoodsName(String goodsName) {
            this.goodsName = goodsName;
        }

        public double getDepositAmount() {
            return depositAmount;
        }

        public void setDepositAmount(double depositAmount) {
            this.depositAmount = depositAmount;
        }

        public String getItemName() {
            return itemName;
        }

        public void setItemName(String itemName) {
            this.itemName = itemName;
        }

        public String getItemType() {
            return itemType;
        }

        public void setItemType(String itemType) {
            this.itemType = itemType;
        }

        public int getOrderId() {
            return orderId;
        }

        public void setOrderId(int orderId) {
            this.orderId = orderId;
        }

        public int getOrderItemId() {
            return orderItemId;
        }

        public void setOrderItemId(int orderItemId) {
            this.orderItemId = orderItemId;
        }

        public double getPrice() {
            return price;
        }

        public void setPrice(double price) {
            this.price = price;
        }

        public double getDiscountPrice() {
            return discountPrice;
        }

        public void setDiscountPrice(double discountPrice) {
            this.discountPrice = discountPrice;
        }

        public int getCount() {
            return count;
        }

        public void setCount(int count) {
            this.count = count;
        }

        public String getItemTypeId() {
            return itemTypeId;
        }

        public void setItemTypeId(String itemTypeId) {
            this.itemTypeId = itemTypeId;
        }

        public String getLogo() {
            return logo;
        }

        public void setLogo(String logo) {
            this.logo = logo;
        }
    }
}
